import * as SettingApi from '@/api/setting.js'

export default {
	data() {
		return {
			shareSetting: {
				forward_title: '云上展会',
				forward_img: '',
				timeline_title: '云上展会',
				timeline_img: ''
			}
		}
	},
	created() {
		// SettingApi.share().then(res => {
		// 	console.log(res)
		// 	this.shareSetting = res.share
		// })
	},
	onShareAppMessage() {
		return {
			title: this.shareSetting.forward_title,
			imageUrl: this.shareSetting.forward_img.preview_url
		}
	},
	onShareTimeline() {
		return {
			title: this.shareSetting.timeline_title,
			imageUrl: this.shareSetting.timeline_img.preview_url
		}
	}
}